package dd.prog2.musterExercises.ws12set03_function;

public class ComposedFunction extends Function {
	private Function f;
	private Function g;
	
	public ComposedFunction(Function f, Function g) {
		this.f = f;
		this.g = g;
	}

	@Override
	public double map(double x) {
		return g.map(f.map(x));
	}
	
	
}
